package com.itheima.demo04methodref;

public class Person {
    private String name;
    private int age;

    public Person() {
        System.out.println("执行无参构造器");
    }

    public Person(String name, int age) {
        System.out.println("执行有参构造器");
        this.name = name;
        this.age = age;
    }
}
